package com.jutixueyuan.pojo;

import lombok.Data;

@Data
public class LivegoodsResult {

    private int status;
    private String msg;
    private Object data;
    private Object results;

    private boolean hasMore;

    public static LivegoodsResult ok(){
        LivegoodsResult result = new LivegoodsResult();
        result.setStatus(200);
        result.setMsg("ok");
        return result;
    }

    public static LivegoodsResult ok(Object data){
        LivegoodsResult result = new LivegoodsResult();
        result.setStatus(200);
        result.setMsg("ok");
        result.setData(data);
        return result;
    }

    public static LivegoodsResult error(String msg){
        LivegoodsResult result = new LivegoodsResult();
        result.setStatus(500);
        result.setMsg(msg);
        return result;
    }




}
